'''
Created on 2012-06-14

@author: alexandre
'''

from mlEval.util import readFile
from mlEval.report import TestInfo, Report, unparseLossLDD
from os import path


# find the example directory to obtain the loss file 
try: exampleDir = path.dirname( path.abspath( __file__ ) )
except NameError : exampleDir = '.'
    
# read the example loss file
lossLDD, wL= unparseLossLDD( readFile( exampleDir,'lossLDD.txt' ) ) 

testInfo = TestInfo(lossLDD)
report = Report(testInfo, sgnTest=True, wsrTest=True, showIndividualRisk=True)
report.texDoc.pdf()

